<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title><?php echo C_TITLE ?></title>
    <base href="<?=base_url()?>" />
    <meta name="description"  content="<?php echo C_META_DESCRIPTION    ?>">
    <meta name="keywords"     content="<?php echo C_META_KEYWORDS       ?>">
    <meta name="author"       content="<?php echo C_META_AUTHOR         ?>">
    <meta name="generator"    content="Emacs http://www.gnu.org/software/emacs/">
    <link href="application/views/scripts/css/empresa-datos.css" rel="stylesheet" type="text/css" />
    <script type='text/javascript'><?php include('scripts/js/empresa-datos.js'); ?></script>
<?php
ob_start('comprimir_pagina');
session_start();
?>
  </head>
	<body >
		<div id="container-<?php echo $this->pre ?>" >
			<form method="" id="form-<?php echo $this->pre ?>" action="">

				<div id="accordion">
					<h3><a href="#"><?php echo $this->lang->line("ACCORDION_GENERAL") ?></a></h3>
					<div id="datos">

						<div id="header-datos">
						</div>

						<div id="container-basic-data" >

							<div id="container-img" class='container-empresa-datos-container-img'>
								<img id="img-profile" src="application/assets/images/default.jpg" class="ui-widget-content ui-corner-bottom " alt="<?php echo $this->lang->line('INI_BUTTON_ACT_CV') ?>" />
								<button id="change-img" type="button" name="change-img" ><?php echo $this->lang->line("PROFILE_BUTTON_CHANGE_IMG") ?></button>
							</div>

							<div id="toolbar" class=" ui-widget-header ui-corner-all minitoolbar">
								<button id="exportar-cv" type="button" name="exportar-cv" ><?php echo $this->lang->line("INI_BUTTON_EXP_CV") ?></button>
								<button id="renovar"     type="button" name="renovar"     ><?php echo $this->lang->line("INI_BUTTON_RENOVAR") ?></button>
								<button id="edit1"       type="button" name="edit1"       ><?php echo $this->lang->line("PROFILE_BUTTON_EDIT") ?></button>
							</div>
						</div>
						<div id="container-data" >
							<table  cellspacing="" cellpadding="" border="0">
								<tr>
									<td class="tags-label">
										<?php echo $this->lang->line("F_CIF") ?>
									</td>
									<td class="tags-value">
										<input type='text'   id='cif' name='cif'  value="<?php echo $datos['cif'] ?>"    size=15 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
										<input type='hidden' id='id'  name='id'   value="<?php echo $datos['id' ] ?>"      >
									</td>
									<td class="tags-label">
										<?php echo $this->lang->line("F_NIF") ?>
									</td>
									<td class="tags-value">
										<input type='text' id='nif'        name='nif'         value="<?php echo $datos['nif'] ?>"    size=15 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
									</td>
								</tr>
								<tr>
									<td class="tags-label">
										<?php echo $this->lang->line("F_NOMBRE_COM") ?>
									</td>
									<td class="tags-value" colspan='3'>
										<input type='text' id='nombre_com'  name='nombre_com' value="<?php echo $datos['nombre_com'] ?>"  size=50 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
									</td>
								</tr>
							</table>
						</div>
					</div>
					<h3><a href="#"><?php echo $this->lang->line("ACCORDION_LEGAL") ?></a></h3>
					<div class='ui-corner-all'>
						<table width='100%'  cellspacing="" cellpadding="" border="0">
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_RAZON_SOC") ?>
								</td>
								<td class="tags-value" colspan='3'>
									<input type='text' id='razon_soc'  name='razon_soc' value="<?php echo $datos['razon_soc'] ?>" size=60 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_ID_SECTOR_EMP") ?>
								</td>
								<td class="tags-value" colspan=3>
									<input type='hidden' id='id_sector_emp'   name='id_sector_emp'   value="<?php echo $datos['id_sector_emp'] ?>"      >
									<input type='text'   id='t_sector_emp'    name='t_sector_emp'    value="<?php echo $datos['t_sector_emp' ] ?>"   size=60 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_ACTIVIDAD") ?>
								</td>
								<td class="tags-value" colspan=3>
									<textarea id='actividad' name='actividad'  rows=2 cols=60 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
										<?php echo $datos['actividad'] ?>
									</textarea>
								</td>
							</tr>
						</table>
					</div>
					<h3><a href="#"><?php echo $this->lang->line("ACCORDION_DIRECCION") ?></a></h3>
					<div class='ui-corner-all'>
						<table width='100%'>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_PAIS") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='t_pais' name='t_pais' value="<?php echo $datos['t_pais'] ?>" size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_PROVINCIA") ?>
								</td>
								<td class="tags-value">
									<input type='text'   id='t_provincia'  name='t_provincia' value="<?php echo $datos['t_provincia'] ?>"   size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_ID_POBLACION") ?>
								</td>
								<td colspan='3' class="tags-value">
									<input type='hidden' id='id_poblacion'      name='id_poblacion' value="<?php echo $datos['id_poblacion'] ?>" size=25 >
									<input type='text'   id='t_poblacion'       name='t_poblacion'  value="<?php echo $datos['t_poblacion' ] ?>" size=25 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td  class="tags-label">
									<?php echo $this->lang->line("F_DIRECCION") ?>
								</td>
								<td class="tags-value" colspan=3>
									<textarea id='direccion'   name='direccion' value="<?php echo $datos['direccion'] ?>" rows=1 cols=60 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
									<?php echo $datos['direccion'] ?>
									</textarea>
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_VIA") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='via' name='via'  value="<?php echo $datos['via'] ?>"       size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_NOMBRE_VIA") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='nombre_via'   name='nombre_via' value="<?php echo $datos['nombre_via'] ?>" size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_NUMERO_VIA") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='numero_via'     name='numero_via' value="<?php echo $datos['numero_via'] ?>" size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_CODIGO_POSTAL") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='codigo_postal'   name='codigo_postal' value="<?php echo $datos['codigo_postal'] ?>" size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_TELEFONO2") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='telefono2'   name='telefono2' value="<?php echo $datos['telefono'] ?>"      size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_FAX") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='fax' name='fax' value="<?php echo $datos['fax'] ?>"     size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
						</table>
					</div>
					<h3><a href="#"><?php echo $this->lang->line("ACCORDION_CONTACTO") ?></a></h3>
					<div class='ui-corner-all'>
						<table width='100%'>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_CONTACTO") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='contacto'   name='contacto' value="<?php echo $datos['contacto'] ?>"      size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_CARGO_CON") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='cargo_con' name='cargo_con' value="<?php echo $datos['cargo_con'] ?>"     size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_TELEFONO") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='telefono'  name='telefono'  value="<?php echo $datos['telefono'] ?>"    size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_EMAIL_CON") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='email_con'  name='email_con' value="<?php echo $datos['email_con'] ?>"    size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
							<tr>
								<td class="tags-label">
									<?php echo $this->lang->line("F_MOVIL") ?>
								</td>
								<td class="tags-value">
									<input type='text' id='movil' name='movil'  value="<?php echo $datos['movil'] ?>"       size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
								<td class="tags-label">
									<?php echo $this->lang->line("F_SMS") ?>
								</td>
								<td class="tags-value">
									<input type='checkbox' id='sms'     name='sms'  <?php echo ($datos['sms']==1?'checked':'') ?>    size=20 class="ui-widget-content ui-corner-all form-elm" readonly="readonly">
								</td>
							</tr>
						</table>
					</div>
				</div>
			</form>
		</div>
	</body>
</html>
<?php
ob_end_flush();
// Función para eliminar todos ldaos espacios en blanco
function comprimir_pagina($buffer) {
    $busca = array('/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s');
    $reemplaza = array('>','<','\\1');
    return preg_replace($busca, $reemplaza, $buffer);
}
?>
